<link href="../addons/jy_lvpai/resource/css/style.css?v=20210501" rel="stylesheet">
<style type="text/css">
</style>
<div class="login" style="background: url({{tomedia(pagedata.pluginset.bgimg) ||'../addons/jy_lvpai/resource/images/bj.jpg'}}) no-repeat center;
	-moz-background-size: cover;
	     background-size: cover;">
  <div class="wrapper">
    <div class="login-bd">
      <div class="login-bd-left">
        <div class="txt">
          <h1 style="font-size:50px">{{pagedata.pluginset.title || '出门旅拍'}}客户展示系统</h1>
          <p>{{pagedata.pluginset.oneendesc || 'Outbound tour customer display system'}}</p>
        </div>
      </div>
      <div class="login-bd-right">
        <div class="hd"> <a href="javascript:void(0);"> <img style="height:50px" ng-src="{{tomedia(pagedata.pluginset.logo) || '../addons/jy_lvpai/resource/images/logo.png'}}"> </a>
          <h3 class="txt-line">{{pagedata.pluginset.onedesc || '年轻/极致/口碑'}}</h3>
        </div>
        <div class="bd">
          <form id="form" method="post">
            <ul>
              <li> <i class="icon icon-wo1"></i>
                <input type="text" ng-model="pagedata.info.username" value="" placeholder="用户名/邮箱/手机号">
              </li>
              <li> <i class="icon icon-mima"></i>
                <input type="password" ng-model="pagedata.info.password" value="" placeholder="密码">
              </li>
            </ul>
            <div class="remember-pwd">
              <a href="javascript:void(0);"></a> </div>
            <div class="login-btn"> <a href="javascript:void(0);" ng-click="post(pagedata.info,'post');">登录</a> </div>
            <div class="regst">  <span>没有账号？</span>前往 <a href="{{pagedata.pluginset.shenurl}}">加盟申请账户</a></div>
          </form>
        </div>
        <div class="ft">
          <ul>
            <li> copyright </li>
            <li> {{pagedata.pluginset.title || '出门旅拍'}} </li>
            <li> 版权所有 </li><br>
            <li> <a href="http://www.beian.miit.gov.cn">{{pagedata.pluginset.icp}}</a></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>
<script>
scope.pagedata.foget=function(){
	scope.message('忘记密码请联系系统管理员');
}
</script>
<script>
scope.code_image('imgverify',true);
scope.pagedata.towechat_scan_login=function(){
	var url=scope.tool.manage_url('core/user.login/wxauth_check/session_id='+scope.pagedata.session_id,true);
	scope.tool.qr(url,'login_ewm');
	scope.pagedata.wxauth=1;
	scope.tool.wechat_login(function(res){
		if(!res.message || !res.message.openid){
			scope.message('获取openid失败，微信登陆失败！');
		}
		if(res.to_uid==scope.pagedata.session_id){
			scope.pagedata.item.openid=res.message.openid;
			scope.post(scope.pagedata.item,'core/user.login/wechat_scan_login/');
		}
	});
}
scope.pagedata.login=function(){
	scope.post(scope.pagedata.item,'core/user.login/login/');
}
$("body").keydown(function () {
	if (window.event.keyCode==13) {
		scope.pagedata.login();
	}
});
</script>
